class Again {
  constructor (ctx) {
    this.ctx = ctx
  }
  isAgain() {
    this.ctx.canvas.addEventListener('touchstart', (e) => {
      let dot = e.changedTouches[0]
      if (dot.clientX > this.ctx.canvas.width / 2 - 61.5 && dot.clientX < this.ctx.canvas.width / 2 + 61.5 && dot.clientY > this.ctx.canvas.height / 2 + 10 && dot.clientY < this.ctx.canvas.height / 2 + 58) {
        console.log(1)
      } 
    })
  }
}
export default Again